package com.duing.controller;

import com.duing.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class TestController {

    @Autowired
    private TestService testService;

    @GetMapping("/test")
    @ResponseBody
    public String test() {
        return "test springboot";
    }

    @GetMapping("/testThyme")
    public String testThyme() {
        return "test";
    }

    @GetMapping("/testServ")
    @ResponseBody
    public String testServ() {
        return testService.test();
    }

    @GetMapping("/testMapper")
    @ResponseBody
    public String testMapper() {
        return testService.testMapper();
    }

    @GetMapping("/testUser")
    @ResponseBody
    public String testUser(String name) {
        return testService.testUser(name);
    }

}
